import request from "@/utils/request";

//获取轮播图
export function poster_index(params) {
  return request({
    url: "/poster/index",
    method: "get",
    params
  });
}

// 获取商品
export function groupGoods_goods(params) {
  return request({
    url: "/partnerSet/goodsList",
    method: "get",
    params
  });
}

//设置轮播图
export function poster_save(data) {
  return request({
    url: "/poster/save",
    method: "post",
    data
  });
}

//获取公告
export function partnerNotice_index(params) {
  return request({
    url: "/partnerNotice/index",
    method: "get",
    params
  });
}

//设置公告
export function partnerNotice_save(data) {
  return request({
    url: "/partnerNotice/save",
    method: "post",
    data
  });
}

//获取分类导航
export function partnerSet_navList(params) {
  return request({
    url: "/partnerSet/navList",
    method: "get",
    params
  });
}

//设置分类导航
export function partnerSet_editNav(data) {
  return request({
    url: "/partnerSet/editNav",
    method: "post",
    data
  });
}

//获取精选专题
export function partnerSet_projectList(params) {
  return request({
    url: "/partnerSet/projectList",
    method: "get",
    params
  });
}

//设置精选专题
export function partnerSet_editProject(data) {
  return request({
    url: "/partnerSet/editProject",
    method: "post",
    data
  });
}

//获取商品
export function goodsSelect_index(params) {
  return request({
    url: "/goodsSelect/index",
    method: "get",
    params
  });
}

//设置推荐商品
export function goodsSelect_save(data) {
  return request({
    url: "/goodsSelect/save",
    method: "post",
    data
  });
}

//获取强制登录
export function isLoginSet_index(params) {
  return request({
    url: "/isLoginSet/index",
    method: "get",
    params
  });
}

//设置强制登录
export function isLoginSet_save(data) {
  return request({
    url: "/isLoginSet/save",
    method: "post",
    data
  });
}

// 获取在线图库
export function goodsSelect_checkImage(params) {
  return request({
    url: "/goodsSelect/checkImage",
    method: "post",
    params
  });
}

// 获取在线商城地址
export function getShopUrl(params) {
  return request({
    url: "/partnerSet/getShopUrl",
    method: "get",
    params
  });
}
